package com.zhz.mall.portal.dto;

import com.zhz.mall.portal.modules.oms.model.OmsCartItem;
import com.zhz.mall.portal.modules.ums.model.UmsMemberReceiveAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.util.List;

/***
 * @author zhouhengzhe
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("确认订单页数据传输对象")
public class ConfirmOrderDTO {

    @ApiModelProperty("商品列表")
    private List<OmsCartItem> cartList;


    @ApiModelProperty("所有商品的件数")
    private Integer productTotal;
    @ApiModelProperty("商品总价")
    private BigDecimal priceTotal;
    @ApiModelProperty("运费")
    private BigDecimal freightAmount;
    @ApiModelProperty("应付总额")
    private BigDecimal payAmount;

    @ApiModelProperty("收货地址")
    private List<UmsMemberReceiveAddress> addressList;
}
